﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RolReadForm.aspx.cs" Inherits="UILGestion.Seguridad.RolReadForm" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register src="../Control/menuCtrl.ascx" tagname="menuCtrl" tagprefix="uc1" %>

<%@ Register src="EmpleadoListGrid.ascx" tagname="EmpleadoListGrid" tagprefix="uc2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .style1
        {
            height: 23px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server" >
    <input id="internalid" type="hidden" runat="server" />   
        <uc1:menuCtrl ID="menuCtrl1" runat="server" />

        <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"  EnablePartialRendering="true">
    </asp:ToolkitScriptManager>
       <asp:Label ID="Label2" runat="server" Text="Registro  Rol" 
                         style="font-size: large; color: #960818"></asp:Label>

     <table  width="100%">
                 <tr>
                 <td  width="80%">
                 
                   <table >
<tr>
<td>
    <asp:Button ID="refreshButton" runat="server" Text="Restablecer"  Font-Size="X-Small" class="button "
        onclick="btnContinue_Click"    /></td>

<td>
    <asp:Button ID="editarButton" runat="server" Text="Editar" Font-Size="X-Small" class="button "
        onclick="btnContinue_Click"  /></td>
<td>
    <asp:Button ID="nuevoButton" runat="server" Text="Nuevo" Font-Size="X-Small" class="button "
        onclick="btnContinue_Click"  /></td>




 <td>
    <asp:Button ID="EliminarButton" runat="server" Text="Eliminar"  class="button " 
     OnClientClick="return confirm('Usted quiere eliminar?')" onclick="btnContinue_Click" Font-Size="X-Small"
        /></td> 

        

 <td>

 


        <%--
          <asp:HyperLink runat= "server"           Text="Imprimir"   Target="_blank"  ID="OrdenCompra" l
                NavigateUrl='<%# "../Rpt/PrintForm.aspx?idOrdenCompra=" + internalid.Value+ 
                 "&idObra=" + idObra.Value%>' 
               />   
--%>
        </td>
        <td></td>
    <%--<td>
         <a href="#" class="button "   onclick="goPage();return true">Imprimir</a>
        </td>--%>
</tr>
</table>
                 </td>
                 <td>
                   <table align="left" >
            
            <tr>
                <td>
                    <asp:Button ID="anteriorButton" runat="server" class="button " Text="Anterior"  OnClick="btnContinue_Click" Font-Size="X-Small"/>
                </td>
                <td>
                    <asp:Button ID="siguienteButton" runat="server" class="button " Text="Siguiente" OnClick="btnContinue_Click" Font-Size="X-Small"/>
                </td>
            </tr>
        </table>  
                 </td>
                 </tr>
                 </table>
                 <hr />
     <asp:Panel ID="Panel1" runat="server"
                   Font-Size="X-Small"
                 font-names="Arial" >
        <table >
            <tr>
                <td>
                Nombre:</td>
                <td>
                    <asp:Label ID="NombreLabel" runat="server" Width="300px"></asp:Label>
                </td>
                <td>
                    Fecha Creacion:</td>
                <td>
                    <asp:Label ID="fechacreacionLabel" runat="server"></asp:Label>
                </td>
                </tr>
                <tr>
                <td>
                Activo:</td>
                <td>
                <asp:CheckBox ID="activoChk" runat="server" Enabled="False" />
                </td>
                    <td>
                        Fecha Modificacion:</td>
                    <td>
                        <asp:Label ID="fechaModificacionLabel" runat="server"></asp:Label>
                    </td>
            </tr>
            <tr>
                
                <td class="style1">
                    &nbsp;</td>
                <td class="style1">
                    &nbsp;</td>
                <td class="style1">
                    Usuario Mod:</td>
                <td class="style1">
                    <asp:Label ID="usuarioModLabel" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
           
            <td>
                &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
        </table>

  
   
    <asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0">
        <asp:TabPanel runat="server" HeaderText="Formulario" ID="TabPanel1">
        <ContentTemplate>
        <asp:TabContainer ID="TabContainer2" runat="server" ActiveTabIndex="0">
        <asp:TabPanel runat="server" HeaderText="Transacciones" ID="TabPanel4">
        <ContentTemplate>

         <asp:GridView 
                 ID="formularioGridView" runat="server" 
                 AutoGenerateColumns="False" 
                 CellPadding="4" 
                 DataKeyNames="idInternal" 
                 Font-Size="X-Small" 
                 ForeColor="#333333"     
                 ShowHeaderWhenEmpty="True">
                  <EditRowStyle 
                 BackColor="#FFFF99" BorderStyle="Outset" />
                 <HeaderStyle backcolor="#DFE8F6" 
                 BorderColor="LightSteelBlue" Font-Bold="True" forecolor="#336699" /><FooterStyle 
                 BackColor="#FFFF99" BorderStyle="Outset" />
                 <Columns>
                 <asp:BoundField DataField="Formulario" headerText="FORMUlARIO" HeaderStyle-Width="350px" />
                <asp:BoundField DataField="Acceso" headerText="ACCESO" HeaderStyle-Width="350px" />
                     
                   </Columns>
                   
                   </asp:GridView>
        </ContentTemplate>
        </asp:TabPanel>


         <asp:TabPanel runat="server" HeaderText="Listas" ID="TabPanel5">
        <ContentTemplate>

         <asp:GridView 
                 ID="GridView1" runat="server" 
                 AutoGenerateColumns="False" 
                 CellPadding="4" 
                 DataKeyNames="idInternal" 
                 Font-Size="X-Small" 
                 ForeColor="#333333"     
                 ShowHeaderWhenEmpty="True">
                  <EditRowStyle 
                 BackColor="#FFFF99" BorderStyle="Outset" />
                 <HeaderStyle backcolor="#DFE8F6" 
                 BorderColor="LightSteelBlue" Font-Bold="True" forecolor="#336699" /><FooterStyle 
                 BackColor="#FFFF99" BorderStyle="Outset" />
                 <Columns>
                 <asp:BoundField DataField="Formulario" headerText="FORMUlARIO" HeaderStyle-Width="350px" />
                <asp:BoundField DataField="Acceso" headerText="ACCESO" HeaderStyle-Width="350px" />
                     
                   </Columns>
                   
                   </asp:GridView>
        </ContentTemplate>
        </asp:TabPanel>


        </asp:TabContainer>

       </ContentTemplate>
        </asp:TabPanel>
        <asp:TabPanel runat="server" HeaderText="Permisos" ID="TabPanel2">
        <ContentTemplate>

        <table>
        <tr>
         <td class="style1">
                 Aprobación Presupuesto</td>
                <td class="style1">
                    <asp:Label ID="nivelPresupuestoLabel" runat="server"></asp:Label>
                </td>
        </tr>
        <tr>
        <td>
                 Aprobación Comparativo</td>
            <td>
                <asp:Label ID="nivelComparativoLabel" runat="server"></asp:Label>
                <br/><span style="font-size: large;">S/.</span>
                <asp:Label ID="montoLabel" runat="server" Text=""></asp:Label>
                </td>

        </tr>
        <tr>
        <td>
                Permitir Aprobar Ordenes de Compra</td>
                <td>
                    <asp:CheckBox ID="aprobarOCCheckBox" runat="server" Enabled="False" />
                </td>
        </tr>

         <tr>
      
       
        </table>
       


                 <asp:Panel runat="server" ID="Panel2" GroupingText="Rendicion Caja Chica" >
   <table>
      
         <tr>
            <td>
                Permitir Aprobar Rendicion Caja Chica</td>
            <td>
                <asp:CheckBox ID="bitAprobarCheckBox" runat="server"  Enabled="false"/>
            </td>
            
        </tr>
         <tr>
            <td>
                Permitir Visto Bueno Caja Chica</td>
            <td>
                <asp:CheckBox ID="bitVistoBuenoCajaChicachk" runat="server"  Enabled="false" />
            </td>
            
        </tr>
         <tr>
            <td>
                Permitir Registrar Deposito Caja Chica</td>
            <td>
                <asp:CheckBox ID="bitDepositoCajaChicaCheckBox" runat="server"  Enabled="false" />
            </td>
            
        </tr>

      
   </table>
   </asp:Panel>  
     <asp:Panel runat="server" ID="Panel3" GroupingText="Kardex" >
   <table>
       <tr>
            <td>
                Permitir Aperturar Kardex</td>
            <td>
                <asp:CheckBox ID="bitkardexCHK" runat="server" />
            </td>
            
        </tr>
    </table>
   </asp:Panel>
                
        </ContentTemplate>
        </asp:TabPanel>

          <asp:TabPanel runat="server" HeaderText="Usuarios" ID="TabPanel3">
        <ContentTemplate>
         <asp:Button ID="Button2" runat="server" Text="Nuevo" Font-Size="X-Small"  CssClass="ms-crm-List-Header"  onclick="nuevoButton_Click"  />
                 <uc2:EmpleadoListGrid ID="EmpleadoListGrid1" runat="server" DataSourceID="EmpleadoListODS" />
                  <asp:ObjectDataSource ID="EmpleadoListODS"  runat="server"
             EnablePaging="True"
              SelectCountMethod="Count" 
              SortParameterName="sortExpression"
             SelectMethod="GetEmpleadoListToRol" 
             typeName="BOL.EmpleadoBL" >
               <SelectParameters>
               <asp:querystringparameter  Name="idRol" Type="Int32" querystringfield="id" />
                <asp:Parameter Name="startRowIndex" Type="Int32" />
                <asp:Parameter Name="maximumRows" Type="Int32" />
                <asp:Parameter Name="sortExpression" Type="String" />

                </SelectParameters>
               </asp:ObjectDataSource>
                
        </ContentTemplate>
        </asp:TabPanel>


    </asp:TabContainer>
      </asp:Panel>

     
    
    </form>
</body>
</html>
